# CMFCore imports
from Products.CMFCore.utils import getToolByName

def importVarious(context):
    """Import various settings.
    """
    portal = context.getSite()
        
    # Portal Form Controller
    portal_form_controller = getToolByName(portal, "portal_form_controller")
    
    # Note: update_version_on_edit is called by default for every ATCT. We hook
    # here in to redirect to the parent easyarticle if there is one.
    portal_form_controller.addFormAction("update_version_on_edit",
                                         "success",
                                         "",
                                         "",
                                         "redirect_to",
                                         "string:go_to_easyarticle")